Improves the platform switching javascript to allow the sub-sections to be URL linkable