JS password impelmemented