Improved prompt and separate file for js