Fixed the prototype call and prototype apply javascript snippets