Enhance javascript's behavior