post fix javascript snippet