Move js specs to platform dependent tests