moved passingfuncasparam test code and created jquery test code