make js more app like..