js assignment

Final refining done
shift this to config