changed .js interface to be prompts and alerts