updated keyword parser

made some changes to the keyword parser javascript