moved to plunker (some js code)