some work on the javascript...still I think it's not very good, but better than before.