Html expression question

This is not working in an expression, does javascript need a specified structure which is not available in an expression?