splitting javascript code into multiple files
fixing #16422955703632 - both subscriptions types toggled in onepager