edited readme
added javascript functions