moved defaults to module; using $.param; refactored stuffs