Custom javascript gets only applied after refresh, creating categories for location plugin

Right, and using script is soon to be deprecated.