Fixed issues with called js that does not exist