Added javascript calls

Added calls to execute javascript.