Move Javascript asset name to an instance variable in pages