remove unused POST branch
fixed indentation and added multiline javascript support to the encoded token