Supporting jQuery and Native Javascript

Added javascript ready function alongside jQuery checking