Restored important .js lines