removes js extension