Dont append .js to path more than once

I am working on a slimrb preprocessor and the repeated appending of .js to a file's path in interactivemode was causing some issues.