working. next time use backbone or angular