split out stock js from html