Refactor JS includes.