got first bit of js working

got password checking working :D