Board Thread:General Coding Help/@comment-9605025-20180428232938/@comment-27958705-20180429002756

$(defaultToForm); just defaultToForm, w\o braces.

also, defaulttoform exposed to window. use iife: (function {//place ur code here});