fixed js directory, no errors in console, closing bug