Changing JS text to JavaScript