Fixed minor issues in basic application js.